package com.gourd.common.rbac.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.gourd.common.data.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author gourd
 * @date 2019-04-02 17:26:16
 * Created by CodeGen .
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("rbac_role_permission")
public class RbacRolePermission extends BaseEntity {
    @TableId
    private Long id;
    @TableField("created_time")
    private Date createdTime;
    @TableField("created_by")
    private Long createdBy;
    @TableField("updated_time")
    private Date updatedTime;
    @TableField("updated_by")
    private Long updatedBy;
    @Version
    private Long version;

    /**
     * 角色id
     */
    @TableField("role_id")
    private  Long roleId;

    /**
     * 权限id
     */
    @TableField("permission_id")
    private  Long permissionId;


}